package com.situ.springbootscientific.controller;

import com.situ.springbootscientific.pojo.query.AuthQuery;
import com.situ.springbootscientific.service.IAuthService;
import com.situ.springbootscientific.utils.PageRusults;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class AuthController {
    @Autowired
    IAuthService authService;
    @RequestMapping("/list")
    public PageRusults list (AuthQuery authQuery){
        PageRusults pageRusults = authService.list(authQuery);
        return pageRusults;
    }
}
